package com.xmb.wcapi.constant;

public enum DepConstant {

	A("-pri", "镭雕"),
	B("-pol", "打磨"),
	C("-pun", "冲压"),
	D("-san", "喷砂"),
	E("-ano", "阳极"),
	F("热压", "热压"),
	G("切挂", "切挂"),
	H("清洗", "清洗"),
	I("-cnc", "CNC"),
	J("热熔", "热熔"),
	K("退镀", "退镀"),
	M("镭雕", "镭雕"),
	L("印刷", "印刷");

	public String code;

	public String message;

	DepConstant(String code, String message){
		
		this.code = code;
		this.message = message;
	}
	
	public static String getMessage(String code) {
		for (DepConstant c : DepConstant.values()) {
			if (code.contains(c.getCode())) {
				return c.message;
			}
		}
		return null;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
